package com.smart.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_recommend")
public class Recommend {
    /**
     * 推荐表主键
     */
    @TableId(value = "recommend_id", type = IdType.INPUT)
    private Long recommendId;

    /**
     * 推荐
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 关联的推荐的商品信息
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品标题
     */
    @TableField(value = "product_title")
    private String productTitle;

    /**
     * 商品图片地址
     */
    @TableField(value = "product_image")
    private String productImage;

    /**
     * 0表示不在首页推荐，1表示在首页推荐
     */
    @TableField(value = "is_show")
    private Integer isShow;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 1表示正常，0表示删除
     */
    @TableField(value = "`status`")
    private Integer status;

    public static final String COL_RECOMMEND_ID = "recommend_id";

    public static final String COL_NAME = "name";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_TITLE = "product_title";

    public static final String COL_PRODUCT_IMAGE = "product_image";

    public static final String COL_IS_SHOW = "is_show";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_STATUS = "status";
}